/*
 * Administrator.java
 *
 * This application demonstrates the use of standard annotations for generating
 * warnings.
 *
 * Copyright 2007 Aptech Software Limited. All Rights Reserved.
 */

package employeeannotation;

/**
 * This class creates instances of the Employee and Manager classes and invokes
 * methods on them.
 * @author vincent
 */
public class Administrator {
  
  /** Creates a new instance of Administrator */
  @SuppressWarnings(value={"deprecation"})
  public Administrator() {
    
    Employee resource = new Employee();
    
    // Try invoking a deprecated method
    resource.display();
    
    Manager projectManager = new Manager("Craig", "13/05/1997", 10000.99,
        "Project Leader");
    
    // Invoke an overridden method
    projectManager.showEmployeeDetails();
  }
  
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
    // TODO code application logic here
    new Administrator();
  }
  
}
